﻿@{
    Layout = null;
}
<!DOCTYPE html> 
<html>
    <head>
        <title>订单</title>
        @Html.Partial("commonMeta")
        <link rel="stylesheet" href="~/css/jquery-ui.min.css"/>
        <link rel="stylesheet" href="~/css/product.css?v=@Wholesaler.Common.Version.Get" />
        <link href="~/Css/stock.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet" />
        <link href="~/Css/teamorder.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet"/>
        <style type="text/css">
			.subnavbar{ display: block;}
			.subnavbar{ background: #fff; padding-bottom: 0 !important;}        	
        </style>
    </head>
    <body>
    	<div class="views">
			<div class="view view-main">
				<div class="navbar">
					<div class="navbar-inner">
			             @* 头部start *@
			            <header id="common_header">
			                <em class="menu-btn"></em>
			                 <em class="colse-nav-btn"></em>
			                <h2>裸钻订单</h2>
			            </header>
			            @* 头部end *@
			            @* 引入菜单 *@
            			@Html.Partial("teammenu")
						<!--一级导航栏start-->
						<div class="wrapper wrapper01" id="retr">
							<div class="scroller">
								<ul class="clearfix" id="categories">
									<li><a href="/Team/Order">裸钻</a></li>
									<li><a href="/Team/ParcelOrder">统包</a></li>
				                     <li><a href="/Team/RingOrder">成品</a></li>
				                     <li><a href="/Team/GemOrder">彩宝</a></li>
				                     <li><a href="/Team/EmeraldOrder">翡翠</a></li>
				                     <li><a href="#">黄金</a></li>
								</ul>
							</div>
						</div>
						<!--一级导航栏end-->
						      <!--二级导航start-->
			       <div class="subnavbar orderBar">
			    	 <div class="check_btn_box buttons-row" >  
                    <ul class="check_list">
                        <li class="transfer">
                            <button class="search_btn_b ModifyPurchaseUserID" onclick='ModifyPurchaseUserID_Js()' title="转移采购" disabled="disabled">转移</button>
                        </li>
                        <li class="revise">
                            <button class="search_btn_b ReviseOrders" onclick='ReviseOrders_Js()' title="退点或打折优惠" disabled="disabled">优惠</button>
                        </li>
                        <li class="arrived" >
                            <button class="search_btn_b ArrivalOrders" onclick="ArrivalOrders_Js()" title="确认到货，入库" disabled="disabled">确认到货</button>
                        </li>
                        <li class="arrived" >
                            <button class="search_btn_b CancelArrivalOrders" onclick="CancelArrivalOrders_Js()" title="取消到货" disabled="disabled">取消到货</button>
                        </li>
                        <li class="pay" >
                            <button class="search_btn_b ReceiptOrders" title="支付买货款"  disabled="disabled">付款</button> 
                        </li>
                        <li class="exchange" >
                            <button class="search_btn_b ExchangeOrders" onclick='ExchangeOrders_Js()' title="修改采购汇率" disabled="disabled">采购汇率</button>
                        </li>
                        <li class="freight" >
                            <button class="search_btn_b ModFreight" onclick='ModFreight_Js()' title="修改运费" disabled="disabled">运费</button>
                        </li>
                        <li class="invalid" >
                            <button class="search_btn_b CancelOrders" onclick='CancelOrders_Js()' title="订单作废" disabled="disabled">作废</button>
                        </li>
                        <li class="prepare" >
                            <button class="search_btn_b AddShip" onclick="AddShip_Js();" title="预先制作出货单" disabled="disabled">制单</button>
                        </li>
                        <li class="ship" >
                            <button class="search_btn_b EditShip" onclick='EditShip_Js()' title="订单出货" disabled="disabled">出货</button>
                        </li>
                        @*<li class="print" >
                            <button class="search_btn_b PrintShip" onclick='PrintShip()' title="打印出货单" disabled="disabled">打单</button>
                        </li>*@
                        <li class="receipt" >
                            <button class="search_btn_b AddBill" title="支付卖货款" onclick='PayOrders_Js()' disabled="disabled">收款</button> 
                        </li>
                        <li class="stock" >
                            <button class="search_btn_b StockOrders"  title="同一客户订单自留成现货" disabled="disabled" onclick='StockOrders_Js()'>自留变现</button> 
                        </li>
                        <li class="back" >
                            <button class="search_btn_b ReturnOrders" title="同一客户订单退回供应商" disabled="disabled" onclick='ReturnOrders_Js()'>退回供应商</button>
                        </li>
                        <li class="del" >
                            <button class="search_btn_b DelOrders" onclick='DelOrders_Js()' title="删除已作废订单" disabled="disabled">删除</button>
                        </li>
                        <li>
                            <button class="search_btn_b RemarkOrder" onclick='RemarkOrder_Js()' title="客户/业务/采购/物流备注" disabled="disabled">备注</button>
                        </li>
                        <li><span id="order_term_btn" class="add_blue">筛选</span> </li>
                    </ul> 
                    
                </div>
                <div class="choose_status buttons-row">当前选择订单状态为：<span id="choose_orderstatus"></span></div>
                
                    <table class="product_table" id="product_table_fixed">
                        <thead>
                            <tr>
	                            <th style='width:8%'>选中</th>
	                            <th style='width:10%'>重量</th>
	                            <th style='width:10%'>颜色</th>
	                            <th style='width:10%'>净度</th>
	                            <th style='width:10%'>退点</th>
	                            <th class="purchase_sell" style='width:13%'>卖￥</th>
	                            <th class="customer" style='width:13%'>客户</th>
	                            <th class="buy" style='width:10%'>收款</th>
	                            <th style='width:15%'>状态</th>
	                            <th style='width:15%'>操作</th>
                            </tr>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>

			    </div>
			    <!--二级导航end-->
			    	
					</div>
			    </div> 
				<div class="pages navbar-through toolbar-through">
		          	<div data-page="index" class="page">
						<div class="page-content" id="app_no_header">
							<!--内容区start-->
							
         	<!--<div class="layout-box product-box order-box clearfix" id="order">-->

                
                <!--<div class="choose_status">当前选择订单状态为：<span id="choose_orderstatus"></span></div>-->
			
                <div class="order-list" id="order_table_box">
                    <table class="product_table" id="product_table">
                        <thead>
                            <tr>
	                            <th style='width:8%'>选中</th>
	                            <th style='width:10%'>重量</th>
	                            <th style='width:10%'>颜色</th>
	                            <th style='width:10%'>净度</th>
	                            <th style='width:10%'>退点</th>
	                            <th class="purchase_sell" style='width:13%'>卖￥</th>
	                            <th class="customer" style='width:13%'>客户</th>
	                            <th class="buy" style='width:10%'>收款</th>
	                            <th style='width:15%'>状态</th>
	                            <th style='width:15%'>操作</th>
                            </tr>
                        </thead>
                        <tbody id="stock_body">

                        </tbody>
                    </table>
             	</div>

		<!--</div>-->


				<div class="check_stat_box" style="position: fixed;top: 0px;left: 0;z-index: 11130;display: none;">
				    <span>已选：<b class="check_num" style="font-weight: bold; color: red;">0 </b>条</span>
				    <span>卖￥：<b class="check_first" style="font-weight: bold; color: red;">0</b>￥</span>
				    <span>卖$：<b class="check_second" style="font-weight: bold; color: red;">0</b>$</span>
				    <span>买$：<b class="check_third" style="font-weight: bold; color: red;">0</b>$</span>
				    <span>买￥：<b class="check_four" style="font-weight: bold; color: red;">0</b>￥</span>
				</div>   
		                
		                <!--内容区end-->
        			</div>
		       		</div>
		       </div>
		       
		       @*弹框*@
		
	@* 作废提示start *@
	 <div class="tip-bg-box" id="disOder">
		 <div class="tip-bg" style="height:150px;">
		     <textarea id="remarks" placeholder="您为什么要作废？"></textarea>
		     <span class="sure-disorder">确定</span>
		     <span class="cancel-disorder">取消</span>
		 </div>
	 </div>
       
  <!-- 订单转移start --->
  <div class="popup ModifyPurchaseUserID_box">
    <div class="pop pop-radius">
        <span class="colse_popbox close-popup">X</span>
        <h5>转移订单</h5>
        <form class="form-inline _transfer clearfix" style="padding: 5px 5px 5px 30px;" id="_transfer" method="post">
            <div class="form-group">
	            <label class="checkbox-inline">选择采购：</label>
	            <select class="form-control list_search" id="_purchasesUserIDs" name="PurchasesUserID"></select>
            </div>
            <div class="confirm">
	            <span><input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" /></span>
	            <span><input type="submit" class="btn btn-danger supbtn" value="确定" /></span>                  <!-- onclick="ModifyPurchaseUserID();" -->
            </div>
        </form>
    </div>
</div>
<!-- 订单转移end --->

<!-- 批量优惠start-->
<div class="popup ReviseOrders_box">
    <div class="pop pop-radius">
    	<span class="colse_popbox close-popup">X</span>
        <h5>批量优惠</h5>
        <form class="form-inline _revise" style="padding: 5px 5px 5px 30px;" method="post" id="_revise">
            <div class="form-group">
                <label for="SalesExchangerate">销售汇率：</label>
                <input class="form-control" type="text" required="required" id="_salesExchangerate" name="SalesExchangerate" placeholder="必填" />
            </div>
            <div class="form-group" id="_discount_box">
            	<label for="DiscountReturn_check" style="width: auto;">
                	<input style="width:30px" type="radio" name="mode" value="1" checked="checked" id="DiscountReturn_check" onchange="DiscountReturnEvent()" />优惠退点&nbsp;&nbsp;&nbsp;            		
            	</label>
				<label for="Discount_check" style="width: auto">
                	<input style="width:30px"  type="radio" name="mode" value="0" id="Discount_check" onchange="DiscountEvent()" />优惠折扣					
				</label>
            </div>
           <div class="form-group" id="DiscountReturn_box">
                <label for="DiscountReturn">优惠退点：</label>
                <input class="form-control" type="text" id="_rebate" name="DiscountReturn" placeholder="优惠1个点输入-1" required="required"/>
           </div>
            <div class="confirm">
            <input type="button" class="btn btn-danger supbtn close-popup" value="取消" name="cancel_btn"/>
            <input type="submit" class="btn btn-danger supbtn" value="确定"/>              
            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" /> 
            </div>               
        </form>
      
    </div>
</div>
<!--批量优惠end -->

<!-- 订单到货start --->
<div class="popup ArrivalOrders_box">
    <div class="pop">
    	<span class="colse_popbox close-popup">X</span>
        <h5>确认到货</h5>
        <form class="form-inline _arrival" style="padding: 5px 5px 5px 30px;" id="_arrival" method="post">
            <div class="form-group" id="arrival_box">
                <label for="Arrivaltime">到货日期：</label>
                 <div class="list-block" style="margin: 0;">
					<ul>
					    <li>
					      <div class="item-content" style="padding-left: 0;">
					        <div class="item-inner">
					          <div class="item-input">
					            <input type="text" class="date_input time_input" name="Arrivaltime" placeholder="选择日期" readonly id="_arrivaltime_" required="required">
					          </div>
					        </div>
					      </div>
					    </li>
					</ul>
				</div>
                <!--<input type="date" class="form-control time_input" id="_arrivaltime_" name="Arrivaltime" required="required"/>-->
            </div>
            <!-- onclick="ArrivalOrders()"-->
            <div class="confirm">
	            <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
	            <input type="submit" class="btn btn-danger supbtn" value="确定" />               <!-- onclick="ModifyPurchaseUserID();" -->
            </div>
        </form>
    </div>
</div>
<!-- 订单到货end --->

<!-- 订单作废start-->
<div class="popup CancelOrders_box">
    <div class="pop">
    	<span class="colse_popbox close-popup">X</span>
        <h5>作废订单</h5>
        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_invalid">
            <div class="form-group clearfix">
            	<label for="SalesRemarks" class="purchase-textarea">业务备注：</label>
                <textarea class="form-control form-text" required="required" rows="3" cols="40" id="_cancelRemarks" placeholder="详细描述作废原因" name="SalesRemarks" style="height: 110px;"></textarea>
            </div>
            <!-- onclick="CancelOrders()"-->
            <div class="confirm">
	            <input type="reset" class="btn btn-danger supbtn" value="重置"/ style="display: none;">
	            <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
	            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
            </div>
        </form>
    </div>
</div>
<!--订单作废end -->

<!-- 收款start-->
<div class="popup PayOrders_box">
    <div class="pop pop-radius">
       	<span class="colse_popbox close-popup">X</span>
        <h5>收款</h5>
        <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_pay">
            <label class="checkbox-inline" style="display:none;">
                <b id="_payCustID"></b>
            </label>
            <div>
                <label>应收金额：</label>
                <label class="checkbox-inline">
                    <b class="check_first" style="font-weight: bold; color: red;">0</b>￥ 或 
                    <b class="check_second" style="font-weight: bold; color: red;">0</b>$
                </label>
            </div>
            <div>
                <label for="Currency">客户余额：</label>
                <select class="form-control list_search" name="Currency" id="_currency">
                    <option value="1" selected="selected">人民币</option>
                    <option value="2">美金</option>
                </select>
            </div>
            <!-- onclick="PayOrders()"-->
             <div class="confirm">
             	<input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
	            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
	            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
            </div>
        </form>
    </div>
</div>
<!--收款end -->

  <!-- 收供应商退款start-->
  <div class="popup PayBackOrders_box">
            <div class="pop">
            	<span class="colse_popbox close-popup">X</span>
                <h5>收款</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_payback">  <!--  _cancel -->
                    <div>
                        <label>应收金额：</label>
                        <label class="checkbox-inline">
                            <b class="check_third" style="font-weight: bold; color: red;">0</b>￥ 
                        </label>
                    </div>
                    <div>
                        <label for="BankID">收款账户：</label>
                        <select id="_paybackBankID" class="form-control list_search" name="BankID"></select>
                    </div>
                    <div>
                        <label for="PayBackAmount">实收金额：</label>
                        <label class="checkbox-inline">
                            <input type="number" class="form-control" name="PayBackAmount" placeholder="总金额" id="_paybackAmount"/>
                        </label>
                    </div>
                    <div>
	                    <label for="ArrivalTime">收款日期：</label>
	                     <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="发货日期" readonly id="paybackarrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
	                    <!--<input type="text" class="form-control time_input" id="paybackarrivalTime" name="ArrivalTime" />-->
	                </div>
                    <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
			            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
		            </div>
                </form>
            </div>
        </div>
        <!--收供应商退款end -->

<!-- 订单兑率start-->
  <div class="popup ExchangeOrders_box">
    <div class="pop pop-radius">
        <span class="colse_popbox close-popup">X</span>
        <h5>修改采购汇率</h5>
        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_exchange">
            <div>
                <label for="PurchaseExchangerate">采购汇率：</label>
               	<input type="text" required="required" name="PurchaseExchangerate" id="_PurchaseExchangerate" placeholder="采购汇率" class="form-control"/>
            </div>
            <div class="confirm">    
            	<input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
	            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
	            <input type="submit" class="btn btn-danger supbtn" value="确定"/>  <!-- onclick="ExchangeOrders()"-->
            </div>  
        </form>
    </div>
</div>
<!--订单兑率end --> 

<!-- 付款start-->
<div class="popup ReceiptOrders_box">
    <div class="pop" style="height:100%; width: 100%">
    	<span class="colse_popbox close-popup">X</span>
        <h5>付款</h5>
        <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_receipt">
            <div>
                <label>应付金额：</label>
                <label class="checkbox-inline">
                    <b class="check_third" style="font-weight: bold; color: red;">0</b>$ 或 
                    <b class="check_four" style="font-weight: bold; color: red;">0</b>￥
                </label>
            </div>
            <br />
            <div>
                <label for="BankID">付款账户：</label>
                <select id="_receiptBankID" class="form-control list_search" name="BankID" required="required"></select>
                <a title="部分付款" onclick="PayAmountNum();">部分付</a>
            </div>
            <br />
            <div class="receiptNum">
                <label for="ReceiptAmount">部分金额：</label>
                <label class="checkbox-inline">
                    <input type="number" required="required" class="form-control" name="ReceiptAmount" placeholder="付款金额(正数)" id="_receiptAmount" disabled/>
                </label>
            </div>
            <br />
            <label for="ArrivalTime">付款日期：</label>
            <label class="checkbox-inline">
            	 <div class="list-block" style="margin: 0;">
					<ul>
					    <li>
					      <div class="item-content" style="padding-left: 0;">
					        <div class="item-inner">
					          <div class="item-input">
					            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="选择日期" readonly id="receiptarrivalTime" required="required">
					          </div>
					        </div>
					      </div>
					    </li>
					</ul>
				</div>
                <!--<input type="date" class="form-control time_input" id="receiptarrivalTime" required="required" name="ArrivalTime" />-->
            </label>
            <div class="confirm">    
            	<input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
            	<input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
            	<input type="submit" class="btn btn-danger supbtn" value="确定" /><!--onclick="ReceiptOrders()"-->
                 </div>
            <em>默认'全部付'，如需'部分付'，请点击【部分付】- 输入【部分金额】，'部分付'仅允许选中1条订单</em>
        </form>
    </div>
</div>
<!--付款end -->  
 <!-- 修改运费start-->
 <div class="popup ModFreight_box">
    <div class="pop pop-radius">
    	<span class="colse_popbox close-popup">X</span>
        <h5>修改运费</h5>
        <form class="form-inline _frei" style="padding: 5px 5px 5px 30px;" method="post" id="_frei">
            <div class="form-group">
                <label for="Freight">运费：</label>
                <input class="form-control" required="required" type="text" id="_freight" name="Freight" placeholder="实际运费"/>
            </div>
          <div class="confirm">  
          	<input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
            <input type="submit" class="btn btn-danger supbtn" value="确定"/>  <!-- onclick="ModFreight()"-->
              </div>
        </form>
    </div>
</div>
<!--修改运费end -->

<!-- 出货start-->
 <div class="popup EditShip_box">
    <div class="pop">
    	<span class="colse_popbox close-popup">X</span>
        <h5>订单出货</h5>
        <form class="form-inline _ship" style="padding: 5px 5px 5px 30px;" method="post" id="_ship">
        	<div class="form-group clearfix">
            	<label for="ShipRemarks" class="purchase-textarea">出货审核：</label>
                <textarea class="form-control form-text" required="required" rows="3" cols="40" id="_shipRemarks" placeholder="审核结果和审核人签字" name="ShipRemarks" style="height: 110px;"></textarea>
           </div>
            <div class="confirm">    
            <!--onclick="EditShip()"-->
	            <input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
	            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display: none;"/>
	            <input type="submit" class="btn btn-danger supbtn" value="确定"/>   
             </div>
            <em>为了降低风险，出货前请了解客户欠款</em>
        </form>
    </div>
</div>
<!--出货end --> 

 <!-- 订单自留start-->
  <div class="popup StockOrders_box">
    <div class="pop">
    	<span class="colse_popbox close-popup">X</span>
        <h5>自留变现</h5>
        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_stock">
        	
            <label class="checkbox-inline" style="display: none;">
                <b id="_stockCustomerID"></b>
            </label>
            <div>
           	 	<label for="SalesRemarks" class="purchase-textarea">备注：</label>
                <textarea class="form-control form-text" required="required" rows="3" cols="45" id="_stockRemarks" placeholder="详细描述自留原因" name="SalesRemarks" style="height: 110px;"></textarea>
            </div>
            <!--onclick="StockOrders()"-->
            <div class="confirm">    
            	<input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
             	<input type="reset" class="btn btn-danger supbtn" value="重置" style="display: none;"/>
            	<input type="submit" class="btn btn-danger supbtn" value="确定"/> 
            </div>   
          
                <!-- onclick="StockOrders();" -->
            <em>自留"<b style="color:red;font-weight:bold">已收</b>"订单，<b style="color:red;font-weight:bold">已收金额原路退回客户余额</b>。</em>
        </form>
    </div>
</div>
<!--订单自留end -->
 <!-- 退回供应商start-->
   <div class="popup ReturnOrders_box">
    <div class="pop">
    	<span class="colse_popbox close-popup">X</span>
        <h5>退回供应商</h5>
        <form class="form-inline _cancel" style="padding: 5px 5px 5px 30px;" method="post" id="_return">
            <label class="checkbox-inline" style="display:none;">
                <b id="_returnCustomerID"></b>
            </label>
            <div>
            	<label for="SalesRemarks" class="purchase-textarea">备注：</label>
                <textarea class="form-control form-text" rows="3" cols="45" id="_returnRemarks" placeholder="详细描述退货回供应商原因" name="SalesRemarks" style="height: 110px;"></textarea>
            </div>
            <!--onclick="ReturnOrders()"-->
            <div class="confirm">    
            	<input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
	            <input type="submit" class="btn btn-danger supbtn" value="确定" style="display: none;"/> 
	            <input type="reset" class="btn btn-danger supbtn" value="重置"/>
            </div>   
            <em>退回"<b style="color:red;font-weight:bold">已收</b>"订单，<b style="color:red;font-weight:bold">已收金额原路退回客户余额</b>。</em>
        </form>
    </div>
</div>
<!--退回供应商end -->

 <!-- 订单备注start-->
 <div class="popup RemarkOrder_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>备注订单</h5>
        <form class="form-inline" style="padding: 5px 5px 5px 30px;">
            <div class="form-group clearfix">
            	<label for="Remarks" class="Remark-textarea">客户备注：</label>
                <textarea class="form-control form-text" required="required" rows="3" cols="50" id="_remarks" placeholder="客户说点啥？" name="Remarks"></textarea>
            </div>
            <div class="form-group clearfix">
           		<label for="SalesRemarks" class="Remark-textarea">业务备注：</label>
                <textarea class="form-control form-text" required="required" rows="3" cols="50" id="_salesRemarks" placeholder="业务说点啥？" name="SalesRemarks"></textarea>
           </div>
            <div class="form-group clearfix">
            	<label for="PurchaseRemarks" class="Remark-textarea">采购备注：</label>
                <textarea class="form-control form-text" required="required" rows="3" cols="50" id="_purchaseRemarks" placeholder="采购说点啥？" name="PurchaseRemarks"></textarea>
            </div>
             <div class="form-group clearfix">
            	<label for="GoodsRemark" class="Remark-textarea">物流备注：</label>
                <textarea class="form-control form-text" rows="1" required="required" cols="50" id="_goodsRemark" placeholder="物流说点啥？" name="GoodsRemark"></textarea>
             </div>
             <!--onclick="RemarkOrder()" -->
            <div class="confirm">
           		<input type="button" class="btn btn-danger supbtn close-popup" value="取消" />
            	<!--<input type="reset" class="btn btn-danger supbtn" value="重置"/>-->
            	<input type="button" class="btn btn-danger supbtn" value="确定" />
           </div>
@*                    <em>备注为追加</em>*@
        </form>
    </div>
</div>
<!--订单备注end -->

<!-- 自留手动回库start -->
 <div class="popup BackDia_box">
    <div class="pop">
    	<span class="colse_popbox close-popup">X</span>
        <h5>回裸钻库</h5>
        <form class="form-inline _backdia form_box" style="padding: 0px 5px 5px 5px;">
        	 
            <div class="form-group" style="display:none;">
                <label for="OrderID">订单号：</label>
                <input type="text" class="form-control" id="_orID" name="OrderID">
            </div>
            <div class="form-group" style="display:none;">
                <label for="InventoryID">库存号：</label>
                <input type="text" class="form-control" id="_invID" name="InventoryID">
            </div>
            <div class="form-group" style="display:none;">
                <label for="InventoryID">Rapnet：</label>
                <input type="text" class="form-control" id="_rapnet" name="_rapnet">
            </div>
            <div class="form-group" style="display:none;">
                <label for="InventoryID">IsFancy：</label>
                <input type="text" class="form-control" id="_isFancy" name="IsFancy">
            </div>
                 
        		<!--重量-->
        		<div class="form-group">
        			<label for="Weight"><b class="start-red">*</b>重量</label>
        			<input type="text" class="form-control" id="weight" placeholder="Weight" name="Weight" readonly="readonly">
        		</div>
        		<div class="form-group">
        			<label for="Shape">形状</label>
        			<select class="form-control" name="Shape" id="shape" disabled="disabled">
                        <option value="1">圆形</option>
                        <option value="2">公主方</option>
                        <option value="3">祖母绿</option>
                        <option value="4">雷迪恩</option>
                        <option value="5">椭圆形</option>
                        <option value="6">梨形</option>
                        <option value="7">马眼形</option>
                        <option value="8">心形</option>
                        <option value="9">三角形</option>
                        <option value="10">垫形</option>
                        <option value="11">其他</option>
               		</select>
                </div>
                <div class="form-group">
        			<label for="Milky">奶油</label>
        			<select class="form-control" name="Milky" id="milky">
                        <option value="">奶油</option>
                        <option value="ML0">无奶</option>
                        <option value="ML1">微奶</option>
                        <option value="ML2">轻奶</option>
                        <option value="ML3">中奶</option>
                        <option value="ML4">重奶</option>
                        <option value="NA">待查</option>
                	</select>
        		</div>
        		<!--颜色-->
        		<div class="form-group">
        			<label for="Color">颜色</label>
        			<input type="text" class="form-control" id="color" placeholder="颜色" name="Color" readonly="readonly">
        		</div>	
        		<div class="form-group">	
        			<label for="Measurement">尺寸</label>
        			<input type="number" class="form-control" id="Measurement" placeholder="尺寸" name="Measurement" value="">
        		</div>	
        		<div class="form-group">
        			<label for="Hue">色调</label>
        			<select class="form-control" name="Hue" id="hue">
                        <option value="" selected="selected">色调</option>
                        <option value="BR0 GR0">无咖无绿</option>
                        <option value="MIX">混色</option>
                        <option value="BR1">微咖</option>
                        <option value="BR2">轻咖</option>
                        <option value="BR3">中咖</option>
                        <option value="BR4">重咖</option>
                        <option value="BR">咖色</option>
                        <option value="GR">绿色</option>
                        <option value="PK">粉色</option>
                        <option value="YE">黄色</option>
                        <option value="NA">待查</option>
                	</select>
        		</div>
        		<div class="form-group">
        			<label for="Clarity">净度</label>
        			 <select class="form-control" name="Clarity" id="clarity" disabled="disabled">
                    <option value="">Clarity</option>
                    <option value="IF">IF</option>
                    <option value="FL">FL</option>
                    <option value="VVS1">VVS1</option>
                    <option value="VVS2">VVS2</option>
                    <option value="VS1">VS1</option>
                    <option value="VS2">VS2</option>
                    <option value="SI1">SI1</option>
                    <option value="SI2">SI2</option>
                    <option value="I1">I1</option>
                    <option value="I2">I2</option>
                    <option value="I3">I3</option>
                    <option value="NN">NN</option>
                </select>
                </div>
                <div class="form-group">
        			<label for="CertType">证书</label>
        			 <select class="form-control" name="CertType" id="certType" disabled="disabled">
                        <option value="">证书</option>
                        <option value="GIA">GIA</option>
                        <option value="IGI">IGI</option>
                        <option value="NGTC">NGTC</option>
                        <option value="HRD">HRD</option>
                        <option value="EGL">EGL</option>
                        <option value="NN">NN</option>
               		</select>
               	</div>
               <div class="form-group">
        			<label for="HA">心箭</label>
        			<select class="form-control" name="HA" id="hA">
                        <option value="">心箭</option>
                        <option value="N">无</option>
                        <option value="Y">有</option>
                        <option value="EX">EX</option>
                        <option value="VG">VG</option>
                        <option value="GD">GD</option>
                        <option value="FR">FR</option>
                        <option value="PR">PR</option>
                        <option value="NA">待查</option>
                </select>
        		</div>
        		<div class="form-group">
        			<label for="Cut">切工</label>
        			<select class="form-control" name="Cut" id="cut">
                    <option value="">Cut</option>
                    <option value="EX">EX</option>
                    <option value="VG">VG</option>
                    <option value="GD">GD</option>
                    <option value="FR">FR</option>
                    <option value="PR">PR</option>
                    <option value="NN">NN</option>
                </select>
                </div>
                <div class="form-group">
        			<label for="CertNo">证书号</label>
        			<input type="text" class="form-control" id="certNo" placeholder="证书号" name="CertNo" disabled="disabled">
        		</div>
        		<div class="form-group">
        			<label for="BlackDefect">黑点</label>
        			<input type="text" class="form-control" id="blackDefect" placeholder="Black Incl" name="BlackDefect">
        		</div>
        		<div class="form-group">
        			<label for="Polish">抛光</label>
        			<select class="form-control" name="Polish" id="polish">
                        <option value="">Polish</option>
                        <option value="EX">EX</option>
                        <option value="VG">VG</option>
                        <option value="GD">GD</option>
                        <option value="FR">FR</option>
                        <option value="PR">PR</option>
                        <option value="NN">NN</option>
                	</select>
                </div>	
                <div class="form-group">	
        			<label for="OriginSN"><b class="start-red">*</b>原货号</label>
        			<input type="text" class="form-control" id="originSN" placeholder="原货号" name="OriginSN">
        		</div>
        		<div class="form-group">
        			<label for="OtherDefect">瑕疵</label>
        			<input type="text" class="form-control" id="otherDefect" placeholder="Other Incl" name="OtherDefect">
        		</div>
        		<div class="form-group">
        			<label for="Symmetry">对称</label>
        			<select class="form-control" name="Symmetry" id="symmetry">
                    <option value="">Symmetry</option>
                    <option value="EX">EX</option>
                    <option value="VG">VG</option>
                    <option value="GD">GD</option>
                    <option value="FR">FR</option>
                    <option value="PR">PR</option>
                    <option value="NN">NN</option>
                </select>
                </div>
        		<div class="form-group">
        			<label for="Place">所在地</label>
        			<select class="form-control" name="Place" id="place">
                        <option value="">所在地</option>
                        <option value="IND">IND</option>
                        <option value="HK">HK</option>
                        <option value="BEL">BEL</option>
                        <option value="SZ" selected="selected">SZ</option>
                        <option value="CHN">CHN</option>
                        <option value="UAE">UAE</option>
                        <option value="GZ">GZ</option>
                        <option value="USA">USA</option>
                        <option value="TL">TL</option>
                        <option value="JPN">JPN</option>
               		</select>
               </div>
        		<div class="form-group">
        			<label for="EyeClean">肉眼</label>
        			 <select class="form-control" name="EyeClean" id="_EyeClean">
                    <option value="EC0">EC0</option>
                    <option value="EC1">EC1</option>
                    <option value="EC2">EC2</option>
                    <option value="EC3">EC3</option>
                </select>
        		</div>
        		<div class="form-group">
        			<label for="Fluorescence">荧光</label>
        			<select class="form-control" name="Fluorescence" id="fluorescence">
                        <option value="">Fluorescence</option>
                        <option value="N">N</option>
                        <option value="F">F</option>
                        <option value="VSL">VSL</option>
                        <option value="S">S</option>
                        <option value="VS">VS</option>
                        <option value="M">M</option>
                    <option value="NN">NN</option>
                	</select>
                </div>
        		<div class="form-group">
        			<label for="Status">状态</label>
        			<select class="form-control" name="Status" id="_status">
                        <option value="">状态</option>
                        <option value="1">在库</option>
                        <option value="2">借出</option>
                        <option value="3">实验室</option>
                        <option value="4">预留</option>
                        <option value="5">展会</option>
               		</select>
               	</div>
        		<div class="form-group">
        			<label for="Comments">其他</label>
        			<input type="text" class="form-control" id="comments" placeholder="Comments" name="Comments">
        		</div>	
        	
        	<legend class="legend" style="font: 12px;">参数：</legend>
        		<div class="form-group">
        			<label for="OriginDiscountReturn"><b class="start-red">*</b>原退点</label>
        			<input type="number" class="form-control" id="sourceDiscountReturn" placeholder="原退点" name="OriginDiscountReturn" />
        		</div> 
                <div class="form-group">	
        			<label for="OriginUSDPerGrain" class="CurrentUSD"><b class="start-red">*</b>原美金</label>
        			<input type="number" class="form-control CurrentRMB" id="sourceDolarPerGrain" placeholder="原美金" name="OriginUSDPerGrain">
        		</div> 
                <div class="form-group">
        			<label for="PurchaseExchange" class="CurrentRMB">原RMB</label>
        			<input type="number" class="form-control CurrentRMB" id="sourceRmbGrain" placeholder="原RMB" name="PurchaseExchange">
        		</div> 
                <div class="form-group">
        			<label for="PurchaseDiscountReturn">买退点</label>
        			<input type="number" class="form-control" id="back_purchaseDiscountReturn" disabled="disabled" placeholder="买退点" name="PurchaseDiscountReturn" />
        		</div> 
                <div class="form-group">	
        			<label for="PurchaseUSDPerGrain" class="CurrentUSD"><b class="start-red">*</b>买美金</label>
        			<input type="number" class="form-control" id="back_purchaseUSDPerGrain" disabled="disabled" placeholder="买美金" name="PurchaseUSDPerGrain">
        		</div> 
                <div class="form-group">	
        			<label for="PurchaseUSDPerCarat" class="CurrentRMB">买RMB</label>
        			<input type="number" class="form-control CurrentRMB" id="back_purchaseRmbPerGrain" disabled="disabled" placeholder="买RMB" name="PurchaseUSDPerCarat" />
        		</div>
        		<div class="form-group">
        			<label for="SaleseRate">买汇率</label>
        			<input type="number" class="form-control" id="SaleseRate" disabled="disabled" placeholder="买汇率" name="SaleseRate">
        		</div> 
                <div class="form-group">	
        			<label for="PurchaseSupplier">供应商</label>
        			<input type="text" class="form-control" id="back_purchaseSupplier" placeholder="供应商" name="PurchaseSupplier">
        		</div>	
        	
        		
        		<div class="form-onshelves" style="margin: 10px 0;">
					<label style="margin-right: 15px;width:78px">上架状态</label>
						<input type="radio" name="OnShelves" value="1" checked="checked">上架
						<input type="radio" name="OnShelves" value="0">下架
				</div>
				<div class="remarks-group">
        			<label for="Comments">备注</label>
        			<textarea id="Comments" name="Comments" placeholder="备注" class="form-text remarks-control" cols="65"></textarea>
        	</div>
    	
		<div class="confirm">
			<input type="button" class="btn btn-danger supbtn cancel supbtn-retention close-popup" value="取消" name="q_x" />
            <input type="reset" class="btn btn-danger supbtn supbtn-retention" value="重置" style="display: none;" />
            <input type="submit" class="btn btn-danger supbtn supbtn-retention" value="确定" />
		</div>
		
		 </form>
    </div>
</div>
<!-- 自留手动回库end -->
        

 <!-- 采购订单start --->
  <div class="popup modify_pop_box">
    <div class="pop">
    	 <span class="colse_popbox close-popup">X</span>
        <h5>采购订单</h5>
        <form class="form-inline purchase_form form_box" method="post">
            <div class="form-group" style="display: none">
                <label for="OrderID">订单号：</label>
                <input type="text" class="form-control" id="_orderID" placeholder="订单号" name="OrderID">
            </div>
            <div class="form-group" style="display: none">
                <label for="OrderStatus">订单状态：</label>
                <input type="text" class="form-control" id="_orderStat" placeholder="订单状态" name="OrderStatus">  <!--11-3 采购和修改采购 -->
            </div>
            		<div class="form-group">
                        <label for="Weight" class="purchase-text"><b style="color:red;font-weight:bold;" >*</b>重量：</label>
                        <input type="text" class="form-control" id="_weight" placeholder="重量" name="Weight" required="required">
            		</div>
            		<div class="form-group">
                        <label for="Color" class="purchase-text"><b style="color:red;font-weight:bold;" >*</b>白钻：</label>
                        <select class="form-control" name="Color" id="e_color" required="required">
                            <option value="">颜色</option>
                            <option value="D">D</option>
                            <option value="E">E</option>
                            <option value="F">F</option>
                            <option value="G">G</option>
                            <option value="H">H</option>
                            <option value="I">I</option>
                            <option value="J">J</option>
                            <option value="K">K</option>
                            <option value="L">L</option>
                            <option value="M">M</option>
                            <option value="N">N</option>
                            <option value="O-P">O-P</option>
                            <option value="Q-R">Q-R</option>
                            <option value="S-T">S-T</option>
                            <option value="U-V">U-V</option>
                            <option value="W-X">W-X</option>
                            <option value="Y-Z">Y-Z</option>
                            <option value="FY">Fancy</option>
                        </select>
            		</div>
            		<div class="form-group">
                        <label for="Clarity" class="purchase-text"><b style="color:red;font-weight:bold;" >*</b>净度：</label>
                        <select class="form-control" name="Clarity" id="e_clarity" required="required">
                            <option value="">净度</option>
                            <option value="IF">IF</option>
                            <option value="FL">FL</option>
                            <option value="VVS1">VVS1</option>
                            <option value="VVS2">VVS2</option>
                            <option value="VS1">VS1</option>
                            <option value="VS2">VS2</option>
                            <option value="SI1">SI1</option>
                            <option value="SI2">SI2</option>
                            <option value="SI3">SI3</option>
                            <option value="I1">I1</option>
                            <option value="I2">I2</option>
                            <option value="I3">I3</option>
                            <option value="NN">NN</option>
                        </select>
            		</div>
            		<div class="form-group">
                        <label for="Cut" class="purchase-text">切工：</label>
                        <select class="form-control" name="Cut" id="_cut">
                            <option value="EX">EX</option>
                            <option value="VG">VG</option>
                            <option value="GD">GD</option>
                            <option value="FR">FR</option>
                            <option value="PR">PR</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Polish" class="purchase-text">抛光：</label>
                        <select class="form-control" name="Polish" id="_polish">
                            <option value="EX">EX</option>
                            <option value="VG">VG</option>
                            <option value="GD">GD</option>
                            <option value="FR">FR</option>
                            <option value="PR">PR</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Symmetry" class="purchase-text">对称：</label>
                        <select class="form-control" name="Symmetry" id="_symmetry">
                            <option value="EX">EX</option>
                            <option value="VG">VG</option>
                            <option value="GD">GD</option>
                            <option value="FR">FR</option>
                            <option value="PR">PR</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Fluorescence" class="purchase-text">荧光：</label>
                        <select class="form-control" name="Fluorescence" id="_fluorescence">
                            <option value="N">N</option>
                            <option value="VSL">VSL</option>
                            <option value="F">F</option>
                            <option value="M">M</option>
                            <option value="S">S</option>
                            <option value="VS">VS</option>
                            <option value="NN">NN</option>
                        </select>
                    </div>
            		<div class="form-group">
                        <label for="Shape" class="purchase-text">形状：</label>
                        <select class="form-control" name="Shape" id="_shape" disabled="disabled">
                            <option value="">形状</option>
                            <option value="1">圆形</option>
                            <option value="2">公主方</option>
                            <option value="3">祖母绿</option>
                            <option value="4">雷迪恩</option>
                            <option value="5">椭圆形</option>
                            <option value="6">梨形</option>
                            <option value="7">马眼形</option>
                            <option value="8">心形</option>
                            <option value="9">三角形</option>
                            <option value="10">垫形</option>
                            <option value="11">其他</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Color" class="purchase-text">彩钻：</label>
                        <input type="text" class="form-control" id="e_fancycolor" placeholder="彩钻颜色" name="Color">
                    </div>
                   
            		<div class="form-group">
                        <label for="OriginSN" class="purchase-text">原货号：</label>
                            <input type="text" class="form-control" id="_originSN" placeholder="原货号" name="OriginSN" />
                    </div>
                    <div class="form-group">
                        <label for="CertType" class="purchase-text">证书：</label>
                        <select class="form-control" name="CertType" id="_certType">
                            <option value="GIA">GIA</option>
                            <option value="IGI">IGI</option>
                            <option value="NGTC">NGTC</option>
                            <option value="HRD">HRD</option>
                            <option value="EGL">EGL</option>
                            <option value="NN">无证</option>
                            <option value="PARCEL">散货</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="CertNo" class="purchase-text"><b style="color:red;font-weight:bold;">*</b>证书号：</label>
                            <input type="text" required="required" class="form-control" id="_certno" placeholder="证书号" name="CertNo" />
                    </div>
            		<div class="form-group">
                        <label for="Rapnet" class="purchase-text">RAP：</label>
                            <input type="text" class="form-control" id="_rapnet" placeholder="Rap" name="Rap" readonly="readonly" />
                    </div>
                    <div class="form-group">
                        <label for="IsFancy" class="purchase-text">白/彩：</label>
                        <select class="form-control" name="IsFancy" id="_isFancy" disabled="disabled">
                            <option value="">白/彩</option>
                            <option value="0">白钻</option>
                            <option value="1">彩钻</option>
                        </select>
                    </div>
                    <div class="form-group form-group-tip">
                        <label for="DiscountReturn" class="purchase-text"><b style="color:red;font-weight:bold;">*</b>原退：</label>
                            <input type="text" required="required" class="form-control" id="_discountReturn" placeholder="白钻以原退为准" name="DiscountReturn"/> <!--onblur="computeUsd();"-->
                        <!--<p class="purchase-tip">(白钻以原退为准)</p>--> 
                    </div>
                    <div class="form-group form-group-tip">
                        <label for="PriceUSD" class="purchase-text"><b style="color:red;font-weight:bold;">*</b>买$：</label>
                            <input type="text" required="required" class="form-control" id="_priceUSD" placeholder="彩钻以买$为准" name="PriceUSD"/> <!--onblur="computeDis();"-->
                        <!--<p class="purchase-tip">(彩钻以买$为准)</p>-->
                    </div>
                    <div class="form-group" style="display: none;">
                        <label for="PurchaseExchange" class="purchase-text">采汇：</label>
                        <input type="number" class="form-control" id="_purchaseExchange" placeholder="采购汇率" name="PurchaseExchange">
                        <!--<p class="purchase-tip">(采购汇率)</p>-->
                    </div>
                    <div class="form-group">
                        <label for="PurchaseRMB" class="purchase-text">买￥：</label>
                        <input type="number" class="form-control" id="_purchaseRMB" placeholder="以￥结算时请不要空" name="PurchaseRMB">
                    </div>
                    <div class="form-group">
                        <label for="DeliveryTime" class="purchase-text"><b style="color:red;font-weight:bold;">*</b>发货日期：</label>
                            <input type="text" required="required" class="form-control time_input" id="_deliveryTime" placeholder="发货日期" name="DeliveryTime" />
                    </div>
                     <div class="form-group">
                        <label for="SupplierCode" class="purchase-text"><b style="color:red;font-weight:bold;">*</b>供应商：</label>
                        <!-- H5 的 datalist 不兼容IE7 8 9 -->
                        <datalist class="form-control" id="_supplierCode" style="display:none;">
                        </datalist>
                        <input class="form-control" required="required" list="_supplierCode" id="_supplierCodeValue" placeholder="供应商" name="SupplierCode" />  <!-- name = "SupplierCode" 11-3 -->
            		</div>
            
			 <div class="remarks-group">
                <label for="PurchaseRemarks" class="purchase-textarea" style="top: 0;"><b style="color:red;font-weight:bold;">*</b>采购备注：</label>
                    <textarea id="_purchasesRemarks" required="required" name="PurchaseRemarks" placeholder="采购备注" class="form-text" cols="65"></textarea>
            </div>
            <div style="clear: both;"></div>
            <div class="confirm">
	            <!--<input type="button" class="btn btn-danger supbtn cancel cancel_box" value="取消"  name="kc" />-->
	            <input type="reset" class="btn btn-danger supbtn" value="重置" />
	            <input type="submit" class="btn btn-danger supbtn" value="确定"/> 	            <!-- onclick="PurchaseOrder()"-->
            </div>
            <em class="Purchase-Em clearfix">（1）点击供应商下拉箭头可查看当前取货地址，供应商联系方式或取货地址永久变更请及时到【供应商】-【裸钻】修改，临时变更请填写到“采购备注”，否则货品将无法取回。<br />（2）以人民币结算时请务必核实并填写买￥。<br />（3）彩钻请填写“彩钻颜色”，原退可填写“0”。</em>
        </form>
    </div>
</div>

<!-- 单个售价start-->
 <div class="popup ReviseAnOrder_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>修改售价</h5>
        <form class="form-inline _reviseOrder" method="post" id="_reviseOrder">
            <div class="form-group" style="display: none">
                <label for="OrderID" class="purchase-text">销售汇率：</label>
                <input type="text" id="_anorderid" name="OrderID" placeholder="" />
            </div>
            <div class="form-group">
                <label for="SalesExchangerate" class="purchase-text">销售汇率：</label>
                <input type="text" id="_salesRate" name="SalesExchangerate" placeholder="必填" required="required"  class="form-control"/>
            </div>
            <div class="form-group" id="_discount_box_one">
            	<label for="for_discount">
                	<input id="for_discount" type="radio" name="model" value="1" checked="checked" onchange="DiscountReturnEvent_one()" />退点&nbsp;&nbsp;&nbsp;            		
            	</label>
            	<label for="for_pcs">
            		<input id="for_pcs" type="radio" name="model" value="0" onchange="DiscountEvent_one()" />￥/Pcs
            	</label>
            </div>
            <div class="form-group" id="Confirmdiscount_box">
                <label for="Confirmdiscount" class="purchase-text">退点：</label>
                <input type="text" id="_confirmdiscount" required="required" name="Confirmdiscount" placeholder="加2个点输入-2" class="form-control"/>
            </div>
            <div class="form-group" id="ConfirmPrice_box">
                <label for="ConfirmPrice" class="purchase-text">￥/Pcs：</label>
                <input type="text" id="_confirmPrice" name="ConfirmPrice" required="required" placeholder="人民币总价" class="form-control"/>
            </div>
            <div  class="confirm">
	            <input type="button" class="btn btn-danger supbtn close-popup" value="取消" name="qx_"/>
	            <input type="submit" class="btn btn-danger supbtn" value="确定"/> 
	            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;"/>
            <!-- onclick="ReviseAnOrder()"-->
            </div>
            <b id="_reviseanorderResult" style="color: red"></b>
        </form>
    </div>
</div>
<!--单个售价end -->
	
<!-- 确定删除start-->
<div class="popup DelOrders_box">
    <div class="pop pop-radius" >
      <span class="colse_popbox close-popup">X</span>
        <h5>删除订单</h5>
        <form class="form-inline" method="post" id="">
            <div class="form-group" style="display: none">
                <label for="OrderID" class="checkbox-inline">订单IDs：</label>
                <input type="text" class="form-control" id="_ids">
            </div>
            <div style="padding-left: 15px;">
            	<label class="checkbox-inline">删除后无法恢复，确定要删除订单吗？</label>
           	</div>
            <div class="confirm">
            	<input type="button" class="btn btn-danger supbtn close-popup" value="取消" style="margin-left: 70px;"/>
	            <!-- cancel为本页的css -->
	            <button class="btn btn-danger supbtn btn_dis" onclick="DelOrders();">确定</button><br /> <!--disabled -->
            </div>
            
            <em style="padding-left: 15px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提醒：确定删除前，建议您导出一份订单作为备用；<b style="color:red">仅供管理员使用</b></em>
    	</form>
    </div>
</div>
<!--确定删除end -->

<!--删除结果start -->
<div class="popup delorders">
    <div class="pop">
        <span class="colse_popbox">X</span>
        <h5>删除结果</h5>
        <form class="form-inline" style="padding: 5px 5px 5px 30px;">
            <em>成功：<b id="_succ"></b></em><br />
            <em>失败：<b id="_fail"></b></em><br />
            <br />
            <em>失败原因：<b>订单不存在</b></em>
        </form>
    </div>
</div>
<!-- 删除结果end-->	

 <!-- 联系方式start-->
 <div class="popup Contact_box">
	<div class="pop">
		 <span class="colse_popbox close-popup">X</span>
		<h5>联系方式</h5>
		<form class="form-inline contact-form form-box" style="padding: 5px 5px 30px 30px;">
			<div class="form-group">
				<label for="ShortName">简称：</label>
                <input class="form-control" type="text" name="ShortName" id="_shortName" placeholder="简称" disabled/>
			</div>
			<div class="form-group">
				<label for="Company">全称：</label>
				<input class="form-control" type="text" name="Company" id="_company" placeholder="全称" disabled/>
			</div>
			<div class="form-group">
				<label for="Name">联系人：</label>
                <input class="form-control" type="text" name="Name" id="_name" placeholder="Name" disabled/>
			</div>
			<div class="form-group">
				<label for="QQ">QQ：</label>
                <input class="form-control" type="text" name="QQ" id="_qq" placeholder="QQ" disabled/>
			</div>
			<div class="form-group">
				<label for="Telephone">固话：</label>
                <input class="form-control" type="text" name="Telephone" id="_telephone" placeholder="固话" disabled/>
			</div>
			<div class="form-group">
				<label for="WeChat">微信：</label>
                <input class="form-control" type="text" name="WeChat" id="_wechat" placeholder="WeChat" disabled/>
			</div>
			<div class="form-group">
				<label for="Email">邮箱：</label>
                <input class="form-control" type="text" name="Email" id="_email" placeholder="Email" disabled/>
			</div>
			<div class="form-group">
				<label for="Skype">Skype：</label>
				<!--<label class="checkbox-inline">
					<input class="form-control" type="text" name="Skype" id="_skype" placeholder="Skype" />
                        <a href="skype:david_tompeng?call"  id="_skype" style="display: none;">
                            <span></span>
                        </a>
               </label>-->
                <a href="skype:david_tompeng?call"  id="_skype">
                <span></span>
                </a>
			</div>
			<div class="form-group">
				<label for="MobilePhone">手机：</label>
                <input class="form-control" type="text" name="MobilePhone" id="_mobilephone" placeholder="MobilePhone" disabled/>
			</div>
			<div class="form-group">
				<label for="Website">网站：</label>
                <input class="form-control" type="text" name="Website" id="_website" placeholder="网站" disabled/>
			</div>
			<div class="form-group">
				<label for="RapID">RapID：</label>
                <input class="form-control" type="text" name="RapID" id="_rapid" placeholder="RapID" disabled/>
			</div>
			<div class="form-group" style="margin-left: 0;">
				<label for="Address">地址：</label>
                <input class="form-control" type="text" name="Address" id="_address" placeholder="Address" disabled/>
			</div>
		</form>
	</div>
</div>
<!--联系方式end -->
  <!--申请充值start-->
<div class="popup Balance_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>申请充值人民币</h5>
        <form class="form-inline _balance" style="padding: 5px 5px 5px 30px;" method="post">
            <label class="checkbox-inline" style="display:none;">
                <input class="form-control" type="text" name="CustomerID" id="_custID" placeholder="客户ID" readonly="readonly" />
            </label>
            <div class="form-group">
            	<label for="RealName">客户名字：</label>
                <input class="form-control" type="text" name="RealName" id="_realName" placeholder="客户名字" readonly="readonly" />
            </div>
            <div class="form-group">
            	<label for="Balance">当前余额：</label>
                <input class="form-control" type="text" name="Balance" id="_bal" placeholder="客户当前余额" readonly="readonly" />
            </div>

            <div class="form-group">
                <b style="vertical-align: top;">银行账户：</b>
                <div class="account-radio" id="_bankID1"></div>
            </div>
            <div class="form-group">
                <label for="Currency">结算币种：</label>
                <input type="radio" name="Currency" value="1" checked="checked" style="width: 30px;"/>人民币
            </div>
            <div class="form-group">
                <label for="Abstract">操作类型：</label>
                <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>客户充值
            </div> 
            <div class="form-group">
            	<label for="Amount"><b style="color:red;">交易金额：</b></label>
                <input class="form-control" type="number" name="Amount" id="camount" placeholder="交易金额" />
            </div>
            <div class="form-group">
            	<label for="ArrivalTime">到款日期：</label>
            	 <div class="list-block" style="margin: 0;">
					<ul>
					    <li>
					      <div class="item-content" style="padding-left: 0;">
					        <div class="item-inner">
					          <div class="item-input">
					            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="到款日期" readonly id="carrivalTime" required="required">
					          </div>
					        </div>
					      </div>
					    </li>
					</ul>
				</div>
                <!--<input type="text" class="date_input time_input" id="carrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
            </div>
            <div class="form-group">
            	<label for="Remarks" class="Remark-textarea">申请备注：</label>
                <textarea class="form-text" rows="2" cols="40" id="cremarks" placeholder="" name="Remarks"></textarea>
            </div>
            <div class="confirm">
             	<input type="button" class="btn btn-danger supbtn cancel close-popup" name="btn" value="取消" />
	            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
	            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
            </div>
        </form>
    </div>
</div>
<!--申请充值end -->

 <!--申请美金充值start-->
        <div class="popup USDBalance_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>申请充值美金</h5>
                <form class="form-inline _usdbalance" style="padding: 5px 5px 5px 30px;" method="post">
                    <label class="checkbox-inline" style="display:none;">
                        <input class="form-control" type="text" name="CustomerID" id="_cuID" placeholder="客户ID" readonly="readonly" />
                    </label>
                    <div class="form-group">
                    	<label for="RealName">客户名字：</label>
                        <input class="form-control" type="text" name="RealName" id="_reName" placeholder="客户名字" readonly="readonly" />
                    </div>
                    <div class="form-group">
                    	<label for="USDBalance">当前余额：</label>
                        <input class="form-control" type="text" name="USDBalance" id="_usdbal" placeholder="客户当前余额" readonly="readonly" />
                    </div>
                    <div class="form-group">
                        <b style="vertical-align: top;">银行账户：</b>
                        <div class="account-radio" id="_usdbankID"></div>
                    </div>
                    <div class="form-group">
                        <label for="Currency">结算币种：</label>
                        <input type="radio" name="Currency" value="2" checked="checked" id="_usd" style="width: 30px;"/>美金
                    </div>
                    <div class="form-group">
                        <label for="Abstract">操作类型：</label>
                        <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>客户充值
                    </div>
                    <div class="form-group">
                    	<label for="Amount"><b style="color:red;">交易金额：</b></label>
                        <input class="form-control" type="number" name="Amount" id="cusdamount" placeholder="交易金额" />
                    </div>
                    <div class="form-group">
                    	<label for="ArrivalTime">到款日期：</label>
                    	<div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="到款日期" readonly id="cusdarrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                        <!--<input type="text" class="date_input time_input" id="cusdarrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
                    </div>
                    <div class="form-group">
                    	<label for="Remarks" class="Remark-textarea">申请备注：</label>
                        <textarea class="form-control form-text" rows="3" cols="40" id="cusdremarks" placeholder="" name="Remarks" ></textarea>
                    </div>
                    <div class="confirm">
		             	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
			            <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
			            <input type="submit" class="btn btn-danger supbtn" value="确定"/>
		            </div>     <!-- onclick="ApplyFlow();" -->
                </form>
            </div>
        </div>
        <!--申请美金充值end -->
		       
	</div>
</div>

    </body>

</html>
@Html.Partial("commonTeamJs")
<script>
	var APP=is_app();
	var PARAMS=@Html.Raw(ViewBag.Param);
	if(APP){
       	PARAMS=eval('('+PARAMS+')');
    }
</script>
<script src="~/Js/chromatable.js"></script>
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/jquery-ui.min.js"></script>
<script src="~/Js/team/orderValidate.js?v=@Wholesaler.Common.Version.Get"></script>
<script type="text/javascript" src="~/Js/title_scroll/flexible.js"></script>
<script type="text/javascript" src="~/Js/title_scroll/iscroll.js"></script>
<script type="text/javascript" src="~/Js/title_scroll/navbarscroll.js"></script>
<script src="~/js/team/order_table.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>
<script src="~/js/team/order_handle.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>



